﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class TakeInScoreRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  34 ;

        public int Score { get; set; }
        public int LocationIndex { get; set; }    //玩家编号
        public string Approver { get; set; }

        public void decode(Input _in)
        {
            Score = _in.readInt();
            LocationIndex = _in.readInt();
            Approver = _in.readString();
        }

        public void encode(Output _out)
        {
           
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("Score= {0}, locationIndex={1}, approver = {2}", Score, LocationIndex,Approver);
        }
    }
}